<template>
  <el-row>
    <el-col :span="4" v-for="(o, index) in data" :key="o" style="margin-bottom: 10px;">
      <el-card :body-style="{ padding: '0px' }">
        <el-image
          style="width: 100%; height: 200px"
          :src="o.image"
          fit="cover">
        </el-image>
        <div style="padding: 14px;">
          <span>{{o.name}}</span>
          <div class="bottom clearfix">
            <time class="time">{{ o.birth_time }}</time>

          </div>
        </div>
      </el-card>
    </el-col>
  </el-row>
</template>

<script>

export default {
  props:[
    'data'
  ],
  filters: {
    statusFilter(status) {
      const statusMap = {
        success: 'success',
        pending: 'danger'
      }
      return statusMap[status]
    },
    orderNoFilter(str) {
      return str.substring(0, 30)
    }
  },
  data() {
    return {
      list: null,
       currentDate: new Date()
    }
  },
  created() {
    this.fetchData()
  },
  methods: {
    fetchData() {
      // transactionList().then(response => {
      //   this.list = response.data.items.slice(0, 8)
      // })
    }
  }
}
</script>
<style>
  .time {
    font-size: 13px;
    color: #999;
  }

  .bottom {
    margin-top: 13px;
    line-height: 12px;
  }

  .button {
    padding: 0;
    float: right;
  }

  .image {
    width: 100%;
    display: block;
  }

  .clearfix:before,
  .clearfix:after {
      display: table;
      content: "";
  }

  .clearfix:after {
      clear: both
  }
</style>
